package com.gilight.base.service.advert;

import com.gilight.base.base.exception.ServiceException;
import com.gilight.base.model.AdvertDO;

import java.util.List;

/**
 *
 * 广告推销
 * Created with IntelliJ IDEA.
 * Description:
 * User: kbq
 * Date: 2019-07-08
 * Time: 下午8:22
 */

public interface AdvertService {

    /**
     * 取得活跃广告
     * @param adType 广告类型
     * @return
     * @throws ServiceException
     */
    public List<AdvertDO> getActiveAd(
            Integer adType)throws ServiceException;
    /**
     * 取得活跃广告
     * @param adType 广告类型
     * @return
     * @throws ServiceException
     */
    public List<AdvertDO> getActiveAdByBrand(
            Integer adType,Long brandId)throws ServiceException;

}
